package com.csust.automaticteach.utils.logging.config;

import com.csust.automaticteach.utils.logging.callback.LogCallbackImpl;
import com.csust.automaticteach.utils.logging.userinfo.LoginLogUserImpl;
import com.csust.opration.logger.core.callback.LogCallbackInterface;
import com.csust.opration.logger.core.userinfo.LogUserInfoAdapter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义日志配置类
 */
@Configuration
public class LogConfig {
    @Bean
//    @Primary
    public LogUserInfoAdapter logUserInfoAdapter() {
        return new LoginLogUserImpl();
    }
    @Bean
    public LogCallbackInterface logCallbackInterface() {
        return new LogCallbackImpl();
    }
}